package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.BookingCarApplication;import java.util.List;

public interface BookingCarApplicationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookingCarApplication record);

    int insertSelective(BookingCarApplication record);

    BookingCarApplication selectByPrimaryKey(Integer id);

    void updateByPrimaryKeyUpdateState(Integer id);

    int updateByPrimaryKeySelective(BookingCarApplication record);

    int updateByPrimaryKey(BookingCarApplication record);

    List<BookingCarApplication> findAll();

    List<BookingCarApplication> selectByStaffId(BookingCarApplication bookingCarApplication);
//查询审核通过的数据
    List<BookingCarApplication> selectByState(BookingCarApplication bookingCarApplication);

    //BookingCarApplication selectByCar(BookingCarApplication bookingCarApplication);

    List<BookingCarApplication> selectAll(BookingCarApplication bookingCarApplication);

    void updateState(Integer id, Integer state);
}